package xiegd.com.springbootuse.demo.lazy;

import org.springframework.beans.factory.annotation.Value;

/**
 * @Author: xieguangda
 * @Description:
 * @Date: 2023/9/15 17:01
 */
//@Component
public class Son {
    @Value("18")
    private Integer age;

    public Son() {
        System.out.println("son 实例化");
    }

    public Son(Integer age) {
        this.age = age;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Son{}";
    }
}
